/*
 * Flowable REST API
 * # flowable / flowəb(ə)l /    - a compact and highly efficient workflow and Business Process Management (BPM) platform for developers, system admins and business users.  - a lightning fast, tried and tested BPMN 2 process engine written in Java. It is Apache 2.0 licensed open source, with a committed community.  - can run embedded in a Java application, or as a service on a server, a cluster, and in the cloud. It integrates perfectly with Spring. With a rich Java and REST API, it is the ideal engine for orchestrating human or system activities.
 *
 * OpenAPI spec version: v1
 *
 *
 * NOTE: This class is auto generated by the swagger code generator program.
 * https://github.com/swagger-api/swagger-codegen.git
 * Do not edit the class manually.
 */


package com.ibm.risk.irmp.workflow.client.flowable.model;

import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;

/**
 * GroupRequest
 */

public class GroupRequest {
  @JsonProperty("id")
  private String id = null;

  @JsonProperty("url")
  private String url = null;

  @JsonProperty("name")
  private String name = null;

  @JsonProperty("type")
  private String type = null;

  @JsonProperty("nameChanged")
  private Boolean nameChanged = null;

  @JsonProperty("typeChanged")
  private Boolean typeChanged = null;

  public GroupRequest id(String id) {
    this.id = id;
    return this;
  }

   /**
   * Get id
   * @return id
  **/
  @ApiModelProperty(example = "testgroup", value = "")
  public String getId() {
    return id;
  }

  public void setId(String id) {
    this.id = id;
  }

  public GroupRequest url(String url) {
    this.url = url;
    return this;
  }

   /**
   * Get url
   * @return url
  **/
  @ApiModelProperty(example = "http://localhost:8182/identity/groups/testgroup", value = "")
  public String getUrl() {
    return url;
  }

  public void setUrl(String url) {
    this.url = url;
  }

  public GroupRequest name(String name) {
    this.name = name;
    return this;
  }

   /**
   * Get name
   * @return name
  **/
  @ApiModelProperty(example = "Test group", value = "")
  public String getName() {
    return name;
  }

  public void setName(String name) {
    this.name = name;
  }

  public GroupRequest type(String type) {
    this.type = type;
    return this;
  }

   /**
   * Get type
   * @return type
  **/
  @ApiModelProperty(example = "Test type", value = "")
  public String getType() {
    return type;
  }

  public void setType(String type) {
    this.type = type;
  }

  public GroupRequest nameChanged(Boolean nameChanged) {
    this.nameChanged = nameChanged;
    return this;
  }

   /**
   * Get nameChanged
   * @return nameChanged
  **/
  @ApiModelProperty(value = "")
  public Boolean getNameChanged() {
    return nameChanged;
  }

  public void setNameChanged(Boolean nameChanged) {
    this.nameChanged = nameChanged;
  }

  public GroupRequest typeChanged(Boolean typeChanged) {
    this.typeChanged = typeChanged;
    return this;
  }

   /**
   * Get typeChanged
   * @return typeChanged
  **/
  @ApiModelProperty(value = "")
  public Boolean getTypeChanged() {
    return typeChanged;
  }

  public void setTypeChanged(Boolean typeChanged) {
    this.typeChanged = typeChanged;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    GroupRequest groupRequest = (GroupRequest) o;
    return Objects.equals(this.id, groupRequest.id) &&
        Objects.equals(this.url, groupRequest.url) &&
        Objects.equals(this.name, groupRequest.name) &&
        Objects.equals(this.type, groupRequest.type) &&
        Objects.equals(this.nameChanged, groupRequest.nameChanged) &&
        Objects.equals(this.typeChanged, groupRequest.typeChanged);
  }

  @Override
  public int hashCode() {
    return Objects.hash(id, url, name, type, nameChanged, typeChanged);
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class GroupRequest {\n");

    sb.append("    id: ").append(toIndentedString(id)).append("\n");
    sb.append("    url: ").append(toIndentedString(url)).append("\n");
    sb.append("    name: ").append(toIndentedString(name)).append("\n");
    sb.append("    type: ").append(toIndentedString(type)).append("\n");
    sb.append("    nameChanged: ").append(toIndentedString(nameChanged)).append("\n");
    sb.append("    typeChanged: ").append(toIndentedString(typeChanged)).append("\n");
    sb.append("}");
    return sb.toString();
  }

  /**
   * Convert the given object to string with each line indented by 4 spaces
   * (except the first line).
   */
  private String toIndentedString(java.lang.Object o) {
    if (o == null) {
      return "null";
    }
    return o.toString().replace("\n", "\n    ");
  }

}
